package com.webervser.core;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

/*该线程负责与指定客户端完成HTTP交互*/
public class ClientHandel implements Runnable{
    private Socket socket;

    public ClientHandel (Socket socket){
            this.socket = socket;
        }

public void run() {
    try {
        InputStream in = socket.getInputStream();
        int b;
        while ((b=in.read())!=-1){
            System.out.print((char) b);
        }

    } catch (IOException e) {
        e.printStackTrace();
    }

}}
